home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / c / amiga-c / files / display.h < prev    next >
C/C++ Source or Header  |  1999-06-14  |  990b  |  49 lines

  1. /**************************************************************************
  2.  
  3. Name       : Display.h
  4. Programmer : Jesse Chan
  5. Version    : 0.01
  6. Date Begun : 03-24-1999
  7. Date Last  : 04-12-1999
  8. Description: Display header
  9.  
  10. **************************************************************************/
  11.  
  12. #ifndef DISPLAY_H
  13. #define DISPLAY_H
  14.  
  15. // DEFINITIONS ////////////////////////////////////////////////////////////
  16.  
  17. #define WIDTH 640
  18. #define HEIGHT 480
  19. #define DEPTH 3
  20. #define COLORS 8
  21.  
  22. // FUNCTIONS //////////////////////////////////////////////////////////////
  23.  
  24. class Display
  25. {
  26. public:
  27.    Display();
  28.    ~Display();
  29.    void OpenDisplay(void);
  30.    void CloseDisplay(void);
  31.    void ClearDisplay(void);
  32.    void Compile_Title(char*, char*, char*);
  33.    void Worms(void);
  34.    void KeyUpdate(void);
  35.  
  36.    int keypressed;
  37.  
  38. private:
  39.    int x;
  40.    int y;
  41.    int color;
  42. //   int visible_buffer;
  43.    UWORD colortable[COLORS];
  44. };
  45.  
  46. ///////////////////////////////////////////////////////////////////////////
  47.  
  48. #endif
  49.